package speed;

public class Recrusion {
	public static void main(String[] args) {
		Num num = new Num();
		num.method(4);
		
	}
}
class Num{
	void method(int n) {
		if(n>2) {
			method(n-1);
		}
		System.out.println("n="+n);
		System.out.println("第"+(4-n+1)+"个进去的");
		System.out.println("第"+(n-1)+"个出来的");
	}
	
}
